package com.ict.txmsv2.controller.clockIn;

import com.ict.txmsv2.model.ClockIn;
import com.ict.txmsv2.model.MethodDescrition;
import com.ict.txmsv2.services.ClockInService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yoleen
 * @date 2020/12/17 14:12
 */

@RestController
@RequestMapping("/clock/in")
public class ClockInController {
    @Autowired
    ClockInService clockInService;

    @GetMapping("/")
    @MethodDescrition
    public List<ClockIn> getAllClockIns(){
        return clockInService.getAllClockIns();
    }
}
